package org.ch02.job.test06;

/**
 * @author XCH
 * @date 2025 - 03 - 20
 */
public class Year {
    public static boolean isLeapYear(int year) {
        boolean flag;
        if (year % 4 == 0 && year % 100 != 0 || year % 400 == 0) {
            flag = true;
            System.out.println(year + "是闰年");
        } else {
            flag = false;
            System.out.println(year + "不是闰年");
        }
        return flag;
    }
}
